﻿<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="application-name" content="@SPMS.Web.Properties.Resources.text_app_title" />
    <meta name="description" content="@SPMS.Web.Properties.Resources.text_app_desc" />
    <title>@ViewBag.Title</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    @Styles.Render("~/Content/css")
    @Styles.Render("~/Content/extjs")
</head>
<body class="spms-layout-page-body">
    <div id="spms-page-header" class="x-hide-display">
        @Html.Partial("_HeaderPartial")
    </div>
    <div id="spms-page-login" class="x-hide-display">
        @Html.Partial("_LoginPartial")
    </div>
    @RenderBody()
    <div id="spms-page-footer" class="x-hide-display">
        @Html.Partial("_FooterPartial")
    </div>
    <script type="text/javascript">
        //定义应用程序路径
        var _ApplicationPath = '@ViewContext.HttpContext.Request.ApplicationPath';
        //记录当前动作路径
        var _StatePath = '@Html.Raw(@Url.Action(this.ViewContext.RouteData.Values["action"].ToString()))';
    </script>
    @Scripts.Render("~/Scripts/jquery")
    @Scripts.Render("~/Scripts/extjs")
    @Scripts.Render("~/Scripts/utility")
    @Scripts.Render("~/Scripts/model")
    <!--注册资源脚本-->
    <script type="text/javascript" src="~/Common/Resources">
    </script>
    <script type="text/javascript">
        //挂接全局脚本错误处理函数
        window.onerror = spms.exception.HandleUnhandleedError;
    </script>
    @RenderSection("scripts", required: true)
</body>
</html>
